ScMobileApp.DetailController = Ember.Controller.extend({
	pageInit: function(view) {
		this.view = view;
		this.eventBind();
	},
	eventBind: function(){
		this.view.$().find("button").click($.proxy(function(){
			//Ember.AnimatedContainerView.enqueueAnimations({main: 'slideRight'});
			//window.location.href = "/breeze#/main/maincontent";
			//history.go(-1);
			
			this.transitionToRouteAnimated('maincontent', {main: 'slideRight'});
			//history.go(-1);
		}, this));
	}
});
